package cn.com.headfree;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@RestController

@ServletComponentScan
@EnableScheduling // 执行定时任务需要的注解

@ComponentScan(basePackages={"cn.com.headfree","com.gta.edu.sdk.util","com.gta.edu.sdk.base","com.sgcc.demo"}) //本地-扫描注解包
//@EnableFeignClients  //本地

//@ComponentScan(basePackages={"cn.com.headfree","com.gta.edu"}) //阿里云-扫描注解包
@EnableFeignClients(basePackages={"cn.com.headfree","com.gta.edu","com.sgcc.demo"})//阿里云
public class HumanManageDingApplication {

    public static void main(String[] args) {
        SpringApplication.run(HumanManageDingApplication.class, args);
    }

}
